<%@ page import="com.hncg.dao.UserDao" %><%--
  Created by IntelliJ IDEA.
  User: chongge
  Date: 2024/1/9
  Time: 12:28
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <%
        String name = request.getParameter("name");
        String pwd = request.getParameter("pwd");
        UserDao userDao = new UserDao();
        boolean flag = userDao.userLogin(name,pwd);
        if (flag){
            response.sendRedirect("userlist.jsp");
        }else{
            response.sendRedirect("login.jsp");
        }
    %>
</body>
</html>
